﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Uber.Core.Model.Notification>" %>
<%@ Import Namespace="Uber.WebUI" %>

<% if (Model.NType == 0)
       {%>answer on your question
    <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>">
        <%:Model.Post.Title %></a>   
       <%}
       if (Model.NType == 1 && Model.Post.ParentId.HasValue)
       {%>comment on your answer for <a href="<%:Url.Action("Questionn","Forum",new{id = Model.Post.ParentId, nid = Model.Id}) %>"><%:Model.Post.Title %></a>   
       <%}
         if (Model.NType == 1 && !Model.Post.ParentId.HasValue)
       {%>comment on your question <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>"><%:Model.Post.Title %></a>   
       <%}
       if (Model.NType == 2 && !Model.Post.ParentId.HasValue)
       {%>comment reply on <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>"><%:Model.Post.Title %></a><%}
        if (Model.NType == 2 && Model.Post.ParentId.HasValue)
       {%>comment reply on <a href="<%:Url.Action("Questionn","Forum",new{id = Model.Post.ParentId, nid = Model.Id}) %>"><%:Model.Post.Title %></a><%}%>
    
    <%=Ui.DateAgo(Model.Date) %>